package com.ping.shiro;

/**
 * 认证状态  将其封装成为一个类，来返回到固定的页面   定义了一个枚举类型
 * @author 浩子
 *2018年10月17日
 */
public enum AuthorizationStatus {
	
	//这两个是枚举类型
	 NOT_LOGIN(401,"UnAuthenticationException","没有登录"),
	    NOT_AUTHORIZATION(403,"UnAuthentizationException","没有授权")
	    ;

    private Integer code;

    private String exception;

    private String msg;

    AuthorizationStatus(Integer code, String exception,String msg) {
        this.code = code;
        this.exception = exception;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }
}
